import request from '../utils/request.js'


export function smokeMeetingUser(params) {
	return new Promise((resolve, reject) => {
		request.post(`/ipad/smokeMeetingUser`, params).then((result) => {
			resolve(result);
		}).catch((error) => {
			reject(error);
		});
	});
}
export function getSecUser(params) {
    return new Promise((resolve, reject)=>{
        request.get("/ipad/secUser", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

export function putSecUser(params) {
  return new Promise((resolve, reject)=>{
      request.put(`/ipad/secUser`, params).then((result)=>{
          resolve(result)
      }).catch(err=>{
          reject(err)
      });
  });
}


export function updatePassword(params) {
  return new Promise((resolve, reject)=>{
      request.put(`/ipad/secUser/updatePassword`, params).then((result)=>{
          resolve(result)
      }).catch(err=>{
          reject(err)
      });
  });
}
export function getUserDetail(id) {
    return new Promise((resolve, reject)=>{
        request.get(`/ipad/secUser/${id}`, params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

